export default [
  {
    path: '/user',
    layout: false,
    routes: [
      { name: '登录', path: '/user/login', component: './User/Login' },
      { name: '注册', path: '/user/register', component: './User/Register' },
    ],
  },
  { path: '/welcome', name: '欢迎', icon: 'smile', component: './Welcome' },
  { path: '/addChart', name: '新增', icon: 'ProjectOutlined', component: './AddChart' },
  {
    path: '/addChartAsync',
    name: '新增异步',
    icon: 'ProjectOutlined',
    component: './AddChartAsync',
  },
  { path: '/myChart', name: '我的', icon: 'FireOutlined', component: './MyChart' },
  {
    path: '/admin',
    name: '管理页',
    icon: 'crown',
    access: 'canAdmin',
    routes: [
      { path: '/admin', redirect: './Admin/UserList' },
      { path: '/admin/tableList', name: '用户管理', component: './Admin/UserList' },
    ],
  },
  // { icon: 'table', name: '数据展示', path: '/list', component: './UserList' },
  { path: '/', redirect: '/welcome' },
  { path: '*', layout: false, component: './404' },
  { path: 'user/personalSetting', component: './User/PersonalSetting' },
];
